package com.papercut.gui;

import com.papercut.R;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class Notification extends Activity {
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
             
        LinearLayout notification_view = new LinearLayout(this);
        notification_view.setOrientation(LinearLayout.VERTICAL);
        notification_view.setBackgroundResource(R.drawable.amazon_background_swipecheck);
        
		ImageView verify_swipe_button = new ImageView(this);
		LinearLayout.LayoutParams verify_swipe_button_layout = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		verify_swipe_button_layout.setMargins(104, 20, 104, 0);
		verify_swipe_button.setImageResource(R.drawable.verify_button);
		verify_swipe_button.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {

	        	Intent swipe_check_intent = new Intent(Notification.this, SwipeCheck.class);
	        	startActivityForResult(swipe_check_intent, 10);
	        	
			}
			
		});
		notification_view.addView(verify_swipe_button, verify_swipe_button_layout);
		
		setContentView(notification_view);
        
    }
    
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    	super.onActivityResult(requestCode, resultCode, data);
    	finish();
    }



}
